from Tkinter import *

def die(event):
    sys.exit(0)
    
def add():
    pass

root=Tk()
bt = Button(root, text='click me')
bt.bind("<Button>", die)

bt.pack()

widget = Label(root, text='hello world')
widget.pack()
#widget.mainloop()

root.mainloop()